aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/ecash/[id]/+layout.server.js
blob: 0b8b291718936554b2adbee0c3b6845b14407b5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import { auth, get } from "$lib/utils";
import { fail, redirect } from "@sveltejs/kit";
import parse from "$lib/parse";

export async function load({ cookies, params, request, url }) {
  let { id } = params;
  let { token, status } = await get(`/cash/${id}`);
  let { spent, total, mint, external } = status;
  return { id, token, spent, total, mint, external };
}